//--- 滚轮组件（scroll-panel） ---//

@import "../../../style/default";

.ui-scrollpanel-wrapper {
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  float: left;
}

.ui-scrollpanel-content {
  height: calc(100% + #{$scrollPanel-content-height});
  width: calc(100% + #{$scrollPanel-content-width});
  padding: 0 $scrollPanel-content-width $scrollPanel-content-height 0;
  position: relative;
  overflow: auto;
  box-sizing: border-box;
}

.ui-scrollpanel-bar {
  position: relative;
  background: $scrollPanel-color;
  border-radius: $scrollPanel-radius;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s linear;
}

.ui-scrollpanel-bar-y {
  width: $scrollPanel-width;
  top: 0;
}

.ui-scrollpanel-bar-x {
  height: $scrollPanel-height;
  bottom: 0;
}

.ui-scrollpanel-hidden {
  visibility: hidden;
}

.ui-scrollpanel:hover .ui-scrollpanel-bar,
.ui-scrollpanel:active .ui-scrollpanel-bar {
  opacity: 1;
}

.ui-scrollpanel-grabbed {
  -o-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  user-select: none;
}
@media (max-width: $screen-sm-max) {
  .aside-collapsed {
    .ui-scrollpanel-content {
      width: 96vw;
    }
  }
  .aside-collapsed {
    .fn-content {
      .ui-scrollpanel-content {
        width: 100vw;
        padding: 0 9px 9px 0;
      }
      .scroll-panel-div {
        padding:8px 4px;
      }
    }
  }
}

